import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { AuthModule } from './auth/auth.module';
import { PersonaModule } from './persona/persona.module';
import { SessionModule } from './session/session.module';
import { MessageModule } from './message/message.module';
import { WsModule } from './ws/ws.module';
import { AIModule } from './ai/ai.module';
import { MemoryModule } from './memory/memory.module';
import { PrismaService } from './prisma/prisma.service';

@Module({
  imports: [
    ConfigModule.forRoot({
      isGlobal: true,
      envFilePath: '.env',
    }),
    AuthModule, 
    WsModule, 
    PersonaModule, 
    SessionModule, 
    MessageModule,
    AIModule,
    MemoryModule,
  ],
  controllers: [],
  providers: [PrismaService],
})
export class AppModule {}